package com.chexiang360;

import com.chexiang360.common.api.Swagger2Config;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author Watler
 */
@Slf4j
@Component
@Configuration
@Import({ Swagger2Config.class })
@ComponentScan(basePackages = { "com.chexiang360" })
@SpringBootApplication
@EnableTransactionManagement
@EnableScheduling
//开发配置
@PropertySource(value = { "classpath:/dev/config.properties" }, encoding = "utf-8")
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
		log.info("======spring boot start success===========");
	}


}



